package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.base.HLList;
import HLLib.base.HLString;
import HLLib.control.HLMessageBoxImage;

public class HLClassMessageBoxImage extends HLLibClass {
    public HLClassMessageBoxImage(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLMessageBoxImage();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            ((HLMessageBoxImage) self).SetMessageBoxWithPos((HLString)args.GetObject(0), (HLList)args.GetObject(1), args.GetInt(0));
            break;
        }
        case 1: {
            ((HLMessageBoxImage) self).SetMessageBox((HLString)args.GetObject(0), (HLList)args.GetObject(1));
            break;
        }
        case 2: {
            ((HLMessageBoxImage) self).Logic();
            break;
        }
        case 3: {
            ((HLMessageBoxImage) self).Render((HLGraphics)args.GetObject(0));
            break;
        }
        }
    }
}
